/*
 * @Author: C.
 * @Date: 2022-10-27 20:38:56
 */
import { Message } from "element-ui";
import { trim } from "../common";
export function scanProBillId(code) {
  if (!code) return;
  let target = trim(code);
  if (
    target &&
    target.substring(3, 0) === window.global_config.QRCodeFormat.proBillId
  ) {
    return target.slice(3);
  } else {
    Message.error("请扫描正确的工单号！");
    return undefined;
  }
}
